const fs = require("fs");
const vm = require("vm");

// let age = 38;
age = 38;
let content = fs.readFileSync("test.txt", "utf-8");

// eval
// eval(content);
// console.log(age);

// new Function
// let fn = new Function("age", "return age + 1");
// console.log(fn(age));

// vm.runInNewContext(content);
vm.runInThisContext("age += 10");
console.log(age);
